# from flask import  Blueprint,request,redirect,session,abort
# bp = Blueprint('admin_bp',__name__,url_prefix='/admin')
# from flask_login import login_required,login_user,logout_user
# from auth.login import *
# from blueprint.admin_bp_impl import *
# from utils.decorator import *
#
#
# # 管理员用户判定装饰器
# def is_admin(fun):
#     @functools.wraps(fun)
#     def wrapper(*args,**kwargs):
#         print("decorator!!!")
#         return fun(*args, **kwargs)
#         # if 'yes' == 'yes':
#         #     return fun(*args, **kwargs)
#         # else:
#         #     return dict(success=True,msg="非管理员用户",code=1200)
#     return wrapper()
# """
# 部门管理功能
# """
#
#
#
# @bp.route('/get_department')
# # @is_admin
# def show_department():
#     try:
#         res = show_department_impl()
#         return dict(success=True, data=res)
#     except Exception as err:
#         return dict(success=True, msg='查询部门出现错误出现错误。', code=800)
#
